(0) Obligation:

Runtime Complexity TRS:
The TRS R consists of the following rules:

fst(0, Z) → nil
fst(s(X), cons(Y, Z)) → cons(Y, fst(X, Z))
from(X) → cons(X, from(s(X)))
add(0, X) → X
add(s(X), Y) → s(add(X, Y))
len(nil) → 0
len(cons(X, Z)) → s(len(Z))

Rewrite Strategy: FULL

(1) RenamingProof (EQUIVALENT transformation)

Renamed function symbols to avoid clashes with predefined symbol.

(2) Obligation:

Runtime Complexity Relative TRS:
The TRS R consists of the following rules:

fst(0', Z) → nil
fst(s(X), cons(Y, Z)) → cons(Y, fst(X, Z))
from(X) → cons(X, from(s(X)))
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
len(nil) → 0'
len(cons(X, Z)) → s(len(Z))

S is empty.
Rewrite Strategy: FULL

(3) SlicingProof (LOWER BOUND(ID) transformation)

Sliced the following arguments:
cons/0
from/0

(4) Obligation:

Runtime Complexity Relative TRS:
The TRS R consists of the following rules:

fst(0', Z) → nil
fst(s(X), cons(Z)) → cons(fst(X, Z))
fromcons(from)
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
len(nil) → 0'
len(cons(Z)) → s(len(Z))

S is empty.
Rewrite Strategy: FULL

(5) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)

Infered types.

(6) Obligation:

TRS:
Rules:
fst(0', Z) → nil
fst(s(X), cons(Z)) → cons(fst(X, Z))
fromcons(from)
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
len(nil) → 0'
len(cons(Z)) → s(len(Z))

Types:
fst :: 0':s → nil:cons → nil:cons
0' :: 0':s
nil :: nil:cons
s :: 0':s → 0':s
cons :: nil:cons → nil:cons
from :: nil:cons
add :: 0':s → 0':s → 0':s
len :: nil:cons → 0':s
hole_nil:cons1_0 :: nil:cons
hole_0':s2_0 :: 0':s
gen_nil:cons3_0 :: Nat → nil:cons
gen_0':s4_0 :: Nat → 0':s

(7) OrderProof (LOWER BOUND(ID) transformation)

Heuristically decided to analyse the following defined symbols:
fst, from, add, len

(8) Obligation:

TRS:
Rules:
fst(0', Z) → nil
fst(s(X), cons(Z)) → cons(fst(X, Z))
fromcons(from)
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
len(nil) → 0'
len(cons(Z)) → s(len(Z))

Types:
fst :: 0':s → nil:cons → nil:cons
0' :: 0':s
nil :: nil:cons
s :: 0':s → 0':s
cons :: nil:cons → nil:cons
from :: nil:cons
add :: 0':s → 0':s → 0':s
len :: nil:cons → 0':s
hole_nil:cons1_0 :: nil:cons
hole_0':s2_0 :: 0':s
gen_nil:cons3_0 :: Nat → nil:cons
gen_0':s4_0 :: Nat → 0':s

Generator Equations:
gen_nil:cons3_0(0) ⇔ nil
gen_nil:cons3_0(+(x, 1)) ⇔ cons(gen_nil:cons3_0(x))
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))

The following defined symbols remain to be analysed:
fst, from, add, len

(9) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
fst(gen_0':s4_0(n6_0), gen_nil:cons3_0(n6_0)) → gen_nil:cons3_0(n6_0), rt ∈ Ω(1 + n60)

Induction Base:
fst(gen_0':s4_0(0), gen_nil:cons3_0(0)) →RΩ(1)
nil

Induction Step:
fst(gen_0':s4_0(+(n6_0, 1)), gen_nil:cons3_0(+(n6_0, 1))) →RΩ(1)
cons(fst(gen_0':s4_0(n6_0), gen_nil:cons3_0(n6_0))) →IH
cons(gen_nil:cons3_0(c7_0))

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(10) Complex Obligation (BEST)

(11) Obligation:

TRS:
Rules:
fst(0', Z) → nil
fst(s(X), cons(Z)) → cons(fst(X, Z))
fromcons(from)
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
len(nil) → 0'
len(cons(Z)) → s(len(Z))

Types:
fst :: 0':s → nil:cons → nil:cons
0' :: 0':s
nil :: nil:cons
s :: 0':s → 0':s
cons :: nil:cons → nil:cons
from :: nil:cons
add :: 0':s → 0':s → 0':s
len :: nil:cons → 0':s
hole_nil:cons1_0 :: nil:cons
hole_0':s2_0 :: 0':s
gen_nil:cons3_0 :: Nat → nil:cons
gen_0':s4_0 :: Nat → 0':s

Lemmas:
fst(gen_0':s4_0(n6_0), gen_nil:cons3_0(n6_0)) → gen_nil:cons3_0(n6_0), rt ∈ Ω(1 + n60)

Generator Equations:
gen_nil:cons3_0(0) ⇔ nil
gen_nil:cons3_0(+(x, 1)) ⇔ cons(gen_nil:cons3_0(x))
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))

The following defined symbols remain to be analysed:
from, add, len

(12) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

Could not prove a rewrite lemma for the defined symbol from.

(13) Obligation:

TRS:
Rules:
fst(0', Z) → nil
fst(s(X), cons(Z)) → cons(fst(X, Z))
fromcons(from)
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
len(nil) → 0'
len(cons(Z)) → s(len(Z))

Types:
fst :: 0':s → nil:cons → nil:cons
0' :: 0':s
nil :: nil:cons
s :: 0':s → 0':s
cons :: nil:cons → nil:cons
from :: nil:cons
add :: 0':s → 0':s → 0':s
len :: nil:cons → 0':s
hole_nil:cons1_0 :: nil:cons
hole_0':s2_0 :: 0':s
gen_nil:cons3_0 :: Nat → nil:cons
gen_0':s4_0 :: Nat → 0':s

Lemmas:
fst(gen_0':s4_0(n6_0), gen_nil:cons3_0(n6_0)) → gen_nil:cons3_0(n6_0), rt ∈ Ω(1 + n60)

Generator Equations:
gen_nil:cons3_0(0) ⇔ nil
gen_nil:cons3_0(+(x, 1)) ⇔ cons(gen_nil:cons3_0(x))
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))

The following defined symbols remain to be analysed:
add, len

(14) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
add(gen_0':s4_0(n269_0), gen_0':s4_0(b)) → gen_0':s4_0(+(n269_0, b)), rt ∈ Ω(1 + n2690)

Induction Base:
add(gen_0':s4_0(0), gen_0':s4_0(b)) →RΩ(1)
gen_0':s4_0(b)

Induction Step:
add(gen_0':s4_0(+(n269_0, 1)), gen_0':s4_0(b)) →RΩ(1)
s(add(gen_0':s4_0(n269_0), gen_0':s4_0(b))) →IH
s(gen_0':s4_0(+(b, c270_0)))

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(15) Complex Obligation (BEST)

(16) Obligation:

TRS:
Rules:
fst(0', Z) → nil
fst(s(X), cons(Z)) → cons(fst(X, Z))
fromcons(from)
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
len(nil) → 0'
len(cons(Z)) → s(len(Z))

Types:
fst :: 0':s → nil:cons → nil:cons
0' :: 0':s
nil :: nil:cons
s :: 0':s → 0':s
cons :: nil:cons → nil:cons
from :: nil:cons
add :: 0':s → 0':s → 0':s
len :: nil:cons → 0':s
hole_nil:cons1_0 :: nil:cons
hole_0':s2_0 :: 0':s
gen_nil:cons3_0 :: Nat → nil:cons
gen_0':s4_0 :: Nat → 0':s

Lemmas:
fst(gen_0':s4_0(n6_0), gen_nil:cons3_0(n6_0)) → gen_nil:cons3_0(n6_0), rt ∈ Ω(1 + n60)
add(gen_0':s4_0(n269_0), gen_0':s4_0(b)) → gen_0':s4_0(+(n269_0, b)), rt ∈ Ω(1 + n2690)

Generator Equations:
gen_nil:cons3_0(0) ⇔ nil
gen_nil:cons3_0(+(x, 1)) ⇔ cons(gen_nil:cons3_0(x))
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))

The following defined symbols remain to be analysed:
len

(17) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
len(gen_nil:cons3_0(n942_0)) → gen_0':s4_0(n942_0), rt ∈ Ω(1 + n9420)

Induction Base:
len(gen_nil:cons3_0(0)) →RΩ(1)
0'

Induction Step:
len(gen_nil:cons3_0(+(n942_0, 1))) →RΩ(1)
s(len(gen_nil:cons3_0(n942_0))) →IH
s(gen_0':s4_0(c943_0))

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(18) Complex Obligation (BEST)

(19) Obligation:

TRS:
Rules:
fst(0', Z) → nil
fst(s(X), cons(Z)) → cons(fst(X, Z))
fromcons(from)
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
len(nil) → 0'
len(cons(Z)) → s(len(Z))

Types:
fst :: 0':s → nil:cons → nil:cons
0' :: 0':s
nil :: nil:cons
s :: 0':s → 0':s
cons :: nil:cons → nil:cons
from :: nil:cons
add :: 0':s → 0':s → 0':s
len :: nil:cons → 0':s
hole_nil:cons1_0 :: nil:cons
hole_0':s2_0 :: 0':s
gen_nil:cons3_0 :: Nat → nil:cons
gen_0':s4_0 :: Nat → 0':s

Lemmas:
fst(gen_0':s4_0(n6_0), gen_nil:cons3_0(n6_0)) → gen_nil:cons3_0(n6_0), rt ∈ Ω(1 + n60)
add(gen_0':s4_0(n269_0), gen_0':s4_0(b)) → gen_0':s4_0(+(n269_0, b)), rt ∈ Ω(1 + n2690)
len(gen_nil:cons3_0(n942_0)) → gen_0':s4_0(n942_0), rt ∈ Ω(1 + n9420)

Generator Equations:
gen_nil:cons3_0(0) ⇔ nil
gen_nil:cons3_0(+(x, 1)) ⇔ cons(gen_nil:cons3_0(x))
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))

No more defined symbols left to analyse.

(20) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
fst(gen_0':s4_0(n6_0), gen_nil:cons3_0(n6_0)) → gen_nil:cons3_0(n6_0), rt ∈ Ω(1 + n60)

(21) BOUNDS(n^1, INF)

(22) Obligation:

TRS:
Rules:
fst(0', Z) → nil
fst(s(X), cons(Z)) → cons(fst(X, Z))
fromcons(from)
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
len(nil) → 0'
len(cons(Z)) → s(len(Z))

Types:
fst :: 0':s → nil:cons → nil:cons
0' :: 0':s
nil :: nil:cons
s :: 0':s → 0':s
cons :: nil:cons → nil:cons
from :: nil:cons
add :: 0':s → 0':s → 0':s
len :: nil:cons → 0':s
hole_nil:cons1_0 :: nil:cons
hole_0':s2_0 :: 0':s
gen_nil:cons3_0 :: Nat → nil:cons
gen_0':s4_0 :: Nat → 0':s

Lemmas:
fst(gen_0':s4_0(n6_0), gen_nil:cons3_0(n6_0)) → gen_nil:cons3_0(n6_0), rt ∈ Ω(1 + n60)
add(gen_0':s4_0(n269_0), gen_0':s4_0(b)) → gen_0':s4_0(+(n269_0, b)), rt ∈ Ω(1 + n2690)
len(gen_nil:cons3_0(n942_0)) → gen_0':s4_0(n942_0), rt ∈ Ω(1 + n9420)

Generator Equations:
gen_nil:cons3_0(0) ⇔ nil
gen_nil:cons3_0(+(x, 1)) ⇔ cons(gen_nil:cons3_0(x))
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))

No more defined symbols left to analyse.

(23) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
fst(gen_0':s4_0(n6_0), gen_nil:cons3_0(n6_0)) → gen_nil:cons3_0(n6_0), rt ∈ Ω(1 + n60)

(24) BOUNDS(n^1, INF)

(25) Obligation:

TRS:
Rules:
fst(0', Z) → nil
fst(s(X), cons(Z)) → cons(fst(X, Z))
fromcons(from)
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
len(nil) → 0'
len(cons(Z)) → s(len(Z))

Types:
fst :: 0':s → nil:cons → nil:cons
0' :: 0':s
nil :: nil:cons
s :: 0':s → 0':s
cons :: nil:cons → nil:cons
from :: nil:cons
add :: 0':s → 0':s → 0':s
len :: nil:cons → 0':s
hole_nil:cons1_0 :: nil:cons
hole_0':s2_0 :: 0':s
gen_nil:cons3_0 :: Nat → nil:cons
gen_0':s4_0 :: Nat → 0':s

Lemmas:
fst(gen_0':s4_0(n6_0), gen_nil:cons3_0(n6_0)) → gen_nil:cons3_0(n6_0), rt ∈ Ω(1 + n60)
add(gen_0':s4_0(n269_0), gen_0':s4_0(b)) → gen_0':s4_0(+(n269_0, b)), rt ∈ Ω(1 + n2690)

Generator Equations:
gen_nil:cons3_0(0) ⇔ nil
gen_nil:cons3_0(+(x, 1)) ⇔ cons(gen_nil:cons3_0(x))
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))

No more defined symbols left to analyse.

(26) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
fst(gen_0':s4_0(n6_0), gen_nil:cons3_0(n6_0)) → gen_nil:cons3_0(n6_0), rt ∈ Ω(1 + n60)

(27) BOUNDS(n^1, INF)

(28) Obligation:

TRS:
Rules:
fst(0', Z) → nil
fst(s(X), cons(Z)) → cons(fst(X, Z))
fromcons(from)
add(0', X) → X
add(s(X), Y) → s(add(X, Y))
len(nil) → 0'
len(cons(Z)) → s(len(Z))

Types:
fst :: 0':s → nil:cons → nil:cons
0' :: 0':s
nil :: nil:cons
s :: 0':s → 0':s
cons :: nil:cons → nil:cons
from :: nil:cons
add :: 0':s → 0':s → 0':s
len :: nil:cons → 0':s
hole_nil:cons1_0 :: nil:cons
hole_0':s2_0 :: 0':s
gen_nil:cons3_0 :: Nat → nil:cons
gen_0':s4_0 :: Nat → 0':s

Lemmas:
fst(gen_0':s4_0(n6_0), gen_nil:cons3_0(n6_0)) → gen_nil:cons3_0(n6_0), rt ∈ Ω(1 + n60)

Generator Equations:
gen_nil:cons3_0(0) ⇔ nil
gen_nil:cons3_0(+(x, 1)) ⇔ cons(gen_nil:cons3_0(x))
gen_0':s4_0(0) ⇔ 0'
gen_0':s4_0(+(x, 1)) ⇔ s(gen_0':s4_0(x))

No more defined symbols left to analyse.

(29) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
fst(gen_0':s4_0(n6_0), gen_nil:cons3_0(n6_0)) → gen_nil:cons3_0(n6_0), rt ∈ Ω(1 + n60)

(30) BOUNDS(n^1, INF)